package com.yc.cloud.log.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 业务日志表
 *
 * @author 杨智杰
 * @since 2021/11/10 13:53
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "业务日志表")
@TableName(value = "sys_work_log")
public class WorkLog implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键Id")
    private Long id;

    /**
     * 日志内容
     */
    @TableField("param")
    @ApiModelProperty(value = "日志内容")
    private String param;

    /**
     * 创建人
     */
    @TableField("create_by")
    @ApiModelProperty(value = "创建人")
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 是否删除
     */
    @TableField("is_del")
    @TableLogic(delval = "1", value = "0")
    @ApiModelProperty(value = "是否删除")
    private Boolean isDel;
}